Skip to content

Conversation

@lentzi90
Copy link
Contributor

What this PR does / why we need it:

I mistakenly removed the namespace when switching to CAPI v1beta2. The infrastructureRef no longer specifies a namespace since it is implied to be the same as the clusters namespace. However, we still need to set a namespace for the NamespacedName...

This is what it looks like in the logs before this fix:

Failed to get logs for Machine cluster-e2e-gnh1j1-control-plane-rwsnw, Cluster e2e-gnh1j1/cluster-e2e-gnh1j1: error getting OpenStackCluster for Machine: an empty namespace may not be set when a resource name is provided

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • if necessary:
    • includes documentation
    • adds unit tests

@netlify
Copy link

netlify bot commented Oct 24, 2025

Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!

Name Link
🔨 Latest commit 6d3524b
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-cluster-api-openstack/deploys/68fb3b372a1fa80008905753
😎 Deploy Preview https://deploy-preview-2795--kubernetes-sigs-cluster-api-openstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 24, 2025
I mistakenly removed the namespace when switching to CAPI v1beta2.
The infrastructureRef no longer specifies a namespace since it is implied to be
the same as the clusters namespace. However, we still need to set a namespace
for the NamespacedName...

Signed-off-by: Lennart Jern <[email protected]>
@lentzi90 lentzi90 force-pushed the lentzi90/e2e-log-fix branch from cd523f0 to 6d3524b Compare October 24, 2025 08:39
Copy link
Contributor

@smoshiur1237 smoshiur1237 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 24, 2025
@lentzi90
Copy link
Contributor Author

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lentzi90

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 24, 2025
@k8s-ci-robot k8s-ci-robot merged commit 55c973f into kubernetes-sigs:main Oct 24, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from Inbox to Done in CAPO Roadmap Oct 24, 2025
@lentzi90 lentzi90 deleted the lentzi90/e2e-log-fix branch October 24, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants